<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>
        {% block title %}基础模板{% endblock %}
    </title>
    <link Rel="SHORTCUT ICON" href="/media/{{ sw.icon }}">
    <link rel="stylesheet" href="{% static 'css/index.css' %}">
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    {% block link %}{% endblock %}
    <style>
    body
        {
            height: 0;
        }
    </style>
</head>
<body>

{% block header %}
<div class="header">
    <div class="hd_tool">
        <div class="container">
            <div class="fr">
                <span><a href="javascript:void(0)" onclick="SetHome(this,window.location)">设为首页</a></span>|<span><a href="javascript:void(0)" onclick="shoucang(document.title,window.location)">加入收藏</a>  </span>
                <div class="cal"><i class="icon"></i>{{ sw.phone }}</div>
            </div>
        </div>
    </div>
    <div class="nav">
        <div class="container">
            <a href="{% url 'web:index' %}">
            <div class="logo fl"></div>
            </a>
            <div class="nav_list fl">
                <ul>
                    <li class="{% if not pt_id and not new %}active{% endif %}"><a href="{% url 'web:index' %}">首页</a></li>
                    {% for plate in plates %}
                        <li class="{% if pt_id == plate.id or new.belong_plate.id == plate.id %}active{% endif %}"><a href="{% url 'web:sec_page' plate.id %}">{{ plate.name }}</a></li>
                    {% endfor %}
                </ul>
            </div>
        </div>
    </div>
</div>
{% endblock %}


{% block main %}{% endblock %}


{% block footer %}
<div class="footer">
    <p>
        {% for footer in footers %}
            <span>{{ footer }}</span>
        {% endfor %}
    </p>
</div>
{% endblock %}

</body>
</html>

{% block ex_script %}
{% endblock %}